#二进制数加法
bin_num1=input().strip()
bin_num2=input().strip()
num1=int(bin_num1,2)
num2=int(bin_num2,2)
sum_num=num1+num2
print(bin(sum_num)[2:])